import "../childen/childen.css"

function Childen(props) {
    const { FatherFn } = props
    function last() {
        console.log(1);
        FatherFn(-1)
       
    }
    function next() {
        console.log(2);
        FatherFn(1)
    }
    return <div className="banner">
        <div className="ye" onClick={() => last()}>上一页</div>
        <div>第{ }页</div>
        <div className="ye" onClick={() => next()}>下一页</div>
    </div>
}
export default Childen